<template>
	<view>
		<view class="u-flex user-box u-p-l-30 u-p-r-20 u-p-b-30">
			<!-- 头像 -->
			<view class="u-m-r-10">
				<!-- <u-avatar :src="pic" size="140"></u-avatar> -->
				<u-avatar  size="140"></u-avatar>
			</view>
			<view class="u-flex-1">
				<view class="u-font-18 u-p-b-20">{{this.vuex_user}}</view>
			</view>
			<view class="u-m-l-10 u-p-10" @click="esc">
				退出
			</view>
		</view>

		<view class="u-m-t-20">
			<u-cell-group>
				<u-cell-item icon="rmb-circle" title="订单" @click="godd"></u-cell-item>
			</u-cell-group>
		</view>

		<view class="u-m-t-20">
			<u-cell-group>
				<u-cell-item icon="setting" title="地址" @click="go"></u-cell-item>
			</u-cell-group>
			<u-cell-group>
				<u-cell-item icon="setting" title="设置"></u-cell-item>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: true
			}
		},
		onLoad() {

		},
		methods: {
			go() {
				uni.navigateTo({
					url: '/pages/address/index'
				})
			},
			godd() {
				uni.navigateTo({
					url: '/pages/order/index2'
				})
			},
			esc(){
				this.$u.vuex('vuex_token', '');
				this.$u.vuex('vuex_user', '');
				uni.redirectTo({
					url: '/pages/login/index'
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #ededed;
	}

	.camera {
		width: 54px;
		height: 44px;

		&:active {
			background-color: #ededed;
		}
	}

	.user-box {
		background-color: #fff;
	}
</style>
